#!/usr/bin/python
# -*- coding: utf-8 -*-  
"""
@version : 
@file : api_test.py
@time : 2019/11/16 21:37:16
@func : 
"""
import requests


url="http://127.0.0.1:8099/li-boss/v1/login"
headers={"Content-Type":"application/json"}
data={"login_name":"super","login_password":"123456"}
res=requests.post(url,json=data,headers=headers)
print(res.json())

#
# url="http://127.0.0.1:8099/li-boss/v1/user/1/password"
# headers={"Authorization":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzUxMTY5ODEsImlhdCI6MTU3NTExNjk3MSwiaXNzIjoia2VuIiwiZGF0YSI6eyJ1c2VyX2tleSI6MSwibG9naW5fdGltZSI6MTU3NTExNjk3MX19.BY5bTEmnSpqQ0MOKxcwi9qiIep4kbZ8G2ktkTBHNvFU"}
# res=requests.post(url,headers=headers)
# print(res.json())







